/*
 * WarrantyBO.java
 *
 * Created on March 26, 2007, 9:52 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.group1E.data;

/**
 *
 * @author tkulbeth
 */
public class WarrantyBO extends BusinessObject{
    
    private int wLength = 0;
    
    /** Creates a new instance of WarrantyBO */
    public WarrantyBO() {
    }

    /** Creates a new instance of WarrantyBO 
     *with a unique identifier.
     *
     *@param id contains the unique id for this Warranty.
     */
    public WarrantyBO(String id){
        this.setIsDirty(true);
        this.setId(id);
    }
    
    /** Returns the length (in months) of the warranty
     * 
     * @return wLength
     */
    public int getWLength() {
        return wLength;
    }

    /** Sets the warranty length (in months)
     * 
     * @param wLength contains the length (in months) for the warranty
     */
    public void setWLength(int wLength) {
        this.wLength = wLength;
    }
}
